<?php
class My_View_Helper_DynamicController extends Zend_View_Helper_Abstract {
    public function dynamicController(){
        $module = Zend_Controller_Front::getInstance()->getRequest()->getModuleName();        
        $controller = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();                
        $view = Zend_Controller_Front::getInstance()->getRequest()->getActionName();
        
        $jscontroller = 'Hi.controller.'.$controller;
        $objcontroller = 'Hi.'.$controller;
        $jsaction = $view;
        
        echo '
        <script type="text/javascript">
        Ext.require("'.$jscontroller.'");
        </script>
        ';
        
    }
}
?>
